const express = require('express')
const app = express()
const cors = require('cors') // 解决跨域
const bodyParser = require('body-parser') // 解决post参数的获取
app.use(cors())
app.use(bodyParser.json())
module.exports = app